package com.xizi.lotterySystem.controller.param;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class PrizeCreateParam {
    @NotBlank(message = "奖品名称不能为空！")
    private String prizeName;
    @NotBlank(message = "奖品描述不能为空！")
    private String description;

    @NotNull(message = "奖品价格不能为空")
    @DecimalMin(value = "0.01", inclusive = true, message = "奖品价格不能小于 0.01")
    private BigDecimal price;
}
